package cn.iocoder.yudao.module.system.controller.admin.application.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 目录审批 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ApplicationRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7034")
    @ExcelProperty("主键id")
    private Integer id;

    @Schema(description = "目录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5170")
    @ExcelProperty("目录ID")
    private String catalogId;

    @Schema(description = "表单类型(1-3(ETL，数据集，接口))", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("表单类型(1-3(ETL，数据集，接口))")
    private String applicationType;

    @Schema(description = "申请标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("申请标题")
    private String applicationTitle;

    @Schema(description = "申请原因", example = "不香")
    @ExcelProperty("申请原因")
    private String applicationReason;

    @Schema(description = "应用场景")
    @ExcelProperty("应用场景")
    private String applicationScenario;

    @Schema(description = "使用时间起始")
    @ExcelProperty("使用时间起始")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date useTimeStart;

    @Schema(description = "使用时间结束")
    @ExcelProperty("使用时间结束")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date useTimeEnd;

    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("联系电话")
    private String contactPhone;

    @Schema(description = "联系地址")
    @ExcelProperty("联系地址")
    private String contactAddress;

    @Schema(description = "服务范围")
    @ExcelProperty("服务范围")
    private String serviceScope;

    @Schema(description = "预期成效")
    @ExcelProperty("预期成效")
    private String expectedEffect;

    @Schema(description = "系统名称", example = "张三")
    @ExcelProperty("系统名称")
    private String systemName;

    @Schema(description = "部署地点")
    @ExcelProperty("部署地点")
    private String deploymentLocation;

    @Schema(description = "系统IP")
    @ExcelProperty("系统IP")
    private String systemIp;

    @Schema(description = "系统URL", example = "https://www.iocoder.cn")
    @ExcelProperty("系统URL")
    private String systemUrl;

    @Schema(description = "等级保护备案号")
    @ExcelProperty("等级保护备案号")
    private String levelProtectionCode;

    @Schema(description = "等保级别")
    @ExcelProperty("等保级别")
    private String levelProtectionLevel;

    @Schema(description = "承诺书文件路径")
    @ExcelProperty("承诺书文件路径")
    private String commitmentFile;

    private String applyFile;

    @Schema(description = "调用次数限制")
    @ExcelProperty("调用次数限制")
    private String callCountLimit;

    @Schema(description = "调用间隔(秒)")
    @ExcelProperty("调用间隔(秒)")
    private String callIntervalSeconds;

    @Schema(description = "目标数据库地址")
    @ExcelProperty("目标数据库地址")
    private String targetDatabaseAddress;

    @Schema(description = "目标数据库表名", example = "芋艿")
    @ExcelProperty("目标数据库表名")
    private String targetDatabaseTableName;

    @Schema(description = "状态：0 未提交、1 已提交、2 审核中、3 审核不通过、4 审核通过", example = "2")
    @ExcelProperty("状态：0 未提交、1 已提交、2 审核中、3 审核不通过、4 审核通过")
    private String status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date createTime;


    private String recordId;
    private String nodeCode;
    private String nodeName;
    private String applicationId;

}
